
// 安装扩展
import Table from "./table";
import Administrative from "./administrative";
import KpiRadio from "./kpiRadio";
import Label from "./label";
import kpiInput from "./kpiInput";
import {pluginManager} from "epic-designer";
import communitySelect from "./communitySelect";
import elderlyTable from "./elderlyTable";
import nonWalkway from "./nonWalkway";
import publicActive from "./publicActive";
import babycare from "./babycare";
import publicLvDi from "./publicLvDi";
import publiccd from "./publiccd";
import multiFunctionTable from "./multiFunctionTable/index";
import oldstreetTable from "./oldstreetTable";
import carparkingTable from "./carparkingTable/index";
import activityCenterTable from "./activityCenterTable/index";



export function setupDesignerExtensions(): void {

    // 注册组件
    pluginManager.registerComponent(Table);
    pluginManager.registerComponent(Administrative);
    pluginManager.registerComponent(KpiRadio);
    pluginManager.registerComponent(Label);
    pluginManager.registerComponent(kpiInput);
    pluginManager.registerComponent(communitySelect);
    pluginManager.registerComponent(elderlyTable);
    pluginManager.registerComponent(nonWalkway);
    pluginManager.registerComponent(publicActive);
    pluginManager.registerComponent(babycare);
    pluginManager.registerComponent(publicLvDi);
    pluginManager.registerComponent(publiccd);
    pluginManager.registerComponent(multiFunctionTable);
    pluginManager.registerComponent(oldstreetTable);
    pluginManager.registerComponent(carparkingTable);
    pluginManager.registerComponent(activityCenterTable);
    // 添加右侧模块
    // 添加右侧模块
    pluginManager.registerRightSidebar({
        id: "test_view",
        title: "关联指标",
        component: async () => await import("./kpiSelect/index.vue"),
    });

}